///////////////////////////////////////////////////////////////////////
//  CS 3715 (Winter 2012), Final Project                      		 //
//  Program File Name: PizzaPlace.java                           	 //
//       Student Name: Jonathan Hart-Wall, Kenny Hardiman            //
//         Login Name: jcwhw1, kch004                                //
//              MUN #: 200933455, 200930253    						 //
///////////////////////////////////////////////////////////////////////

package ca.FMP;

/*
 * PizzaPlace class. 
 */
public class PizzaPlace {

	String name;
	String address;
	String areaoftown;
	String phonenumber;
	String openingtime;
	String closingtime;
	String ImageLink;

	double sprice = 0.0;
	double mprice = 0.0;
	double lprice = 0.0;
	double xlprice = 0.0;
	double partyprice = 0.0;
	double toppingPrice = 0.0;
	String storehours;

	/**
	 * PizzaPlace Constructor
	 * 
	 * @param name
	 * @param address
	 * @param areaoftown
	 * @param phonenumber
	 * @param storehours
	 */
	public PizzaPlace(String name, String address, String areaoftown,
			String phonenumber, String storehours) {
		this.name = name;
		this.address = address;
		this.areaoftown = areaoftown;
		this.phonenumber = phonenumber;
		this.storehours = storehours;

		String[] ct = storehours.split("-");

		openingtime = ct[0];
		closingtime = ct[1];
	}

	/**
	 * getName() method
	 * 
	 * @return name
	 */
	public String getName() {
		return name;
	}

	/**
	 * getAddress() method
	 * 
	 * @return address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * getAreaOfTown() method
	 * 
	 * @return areaoftown
	 */
	public String getAreaOfTown() {
		return areaoftown;
	}

	/**
	 * getPhoneNumber()
	 * 
	 * @return phonenumber
	 */
	public String getPhoneNumber() {
		return phonenumber;
	}

	/**
	 * getOpeningTime() method
	 * 
	 * @return openingtime
	 */
	public String getOpeningTime() {
		return openingtime;
	}

	/**
	 * getClosingTime() method
	 * 
	 * @return closingtime
	 */
	public String getClosingTime() {
		return closingtime;
	}

	/**
	 * getSmallPrice() method
	 * 
	 * @return sprice
	 */
	public double getSmallPrice() {
		return sprice;
	}

	/**
	 * getMedPrice() method
	 * 
	 * @return mprice
	 */
	public double getMedPrice() {
		return mprice;
	}

	/**
	 * getLargePrice() method
	 * 
	 * @return lprice
	 */
	public double getLargePrice() {
		return lprice;
	}

	/**
	 * getXLarge() method
	 * 
	 * @return xlprice
	 */
	public double getXLargePrice() {
		return xlprice;
	}

	/**
	 * getPartyPrice() method
	 * 
	 * @return partyprice
	 */
	public double getPartyPrice() {
		return partyprice;
	}

	/**
	 * setName(String) method
	 * 
	 * @param newname
	 */
	public void setName(String newname) {
		this.name = newname;
	}

	/**
	 * setAddress(String) method
	 * 
	 * @param newaddress
	 */
	public void setAddress(String newaddress) {
		this.address = newaddress;
	}

	/**
	 * setAreaOfTown(String) method
	 * 
	 * @param newareaoftown
	 */
	public void setAreaOfTown(String newareaoftown) {
		this.areaoftown = newareaoftown;
	}

	/**
	 * setPhoneNumber(String) method
	 * 
	 * @param newphonenumber
	 */
	public void setPhoneNumber(String newphonenumber) {
		this.phonenumber = newphonenumber;
	}

	/**
	 * setStoreHours(String) method, also sets openingtime and closingtime
	 * 
	 * @param newstorehours
	 */
	public void setStoreHours(String newstorehours) {
		String[] sh = newstorehours.split("-");

		this.openingtime = sh[0];
		this.closingtime = sh[1];
	}

	/**
	 * setOpeningTime(String) method
	 * @param newopeningtime
	 */
	public void setOpeningTime(String newopeningtime) {
		this.openingtime = newopeningtime;
	}

	/**
	 * setClosingTime(String) method
	 * @param newclosingtime
	 */
	public void setClosingTime(String newclosingtime) {
		this.closingtime = newclosingtime;
	}

	/**
	 * setSmallPrice(double) method
	 * @param newsprice
	 */
	public void setSmallPrice(double newsprice) {
		this.sprice = newsprice;
	}

	/**
	 * setMedPrice(double) method
	 * @param newmprice
	 */
	public void setMedPrice(double newmprice) {
		this.mprice = newmprice;
	}

	/**
	 * setLargePrice(double) method
	 * @param newlprice
	 */
	public void setLargePrice(double newlprice) {
		this.lprice = newlprice;
	}

	/**
	 * setXLPrice(double) method
	 * @param newxlprice
	 */
	public void setXLargePrice(double newxlprice) {
		this.xlprice = newxlprice;
	}

	/**
	 * setPartyPrice(double) method
	 * @param newpartyprice
	 */
	public void setPartyPrice(double newpartyprice) {
		this.partyprice = newpartyprice;
	}

	/**
	 * setImageLink(String) method
	 * @param ImageLink
	 */
	public void setImageLink(String ImageLink) {
		this.ImageLink = ImageLink;
	}

	/**
	 * getImageLink() method
	 * @return ImageLink
	 */
	public String getImageLink() {
		return ImageLink;
	}

	/**
	 * getToppingPrice
	 * @return toppingPrice
	 */
	public double getToppingPrice() {
		return toppingPrice;

	}

	/**
	 * setToppingPrice(double) method
	 * @param toppingPrice
	 */
	public void setToppingPrice(double toppingPrice) {
		this.toppingPrice = toppingPrice;
	}

	/**
	 * toString method
	 */
	public String toString() {
		return name + " " + address + " " + areaoftown + " " + phonenumber
				+ " " + storehours;
	}
}
